$('#add').click(function () {
    $.ajax({
        url: "/citrusmonitor/announce.do?method=addAnnounce",
        type: "post",
        contentType: "application/x-www-form-urlencoded;charset=utf-8",
        data: {
            "title": $("#title").val(),
            "content": $("#content").val()
          /*  "createTime": $("#create_time").val()*/
        },
        
        dataType: "json",
        success: function (msg) {
            if (msg.status==1) {
                alert("添加成功");
                window.location.href="show.html";
            } else {
                alert("添加失败" );
            }
        },
        error:function(){
            alert("资源加载失败！！！");
        }
    })
})